<?php

	/**
	* Manage all events in Calendar
	* Event which is not approve will be shown first (=0)
	* 
	* @author trungdt
	* @since Nov 1, 2011
	* 
	* Change logs
	* Nov 1, 2011 - trungdt - Change Edit action for new template
	*/

	if (!defined('EXPONENT')) exit('');

	$permission_approve=exponent_permissions_check(array("administrate", "approve"), $loc);
	if ($permission_approve)
	{
		$template = new template('calendarmodule','_ManagePage',$loc);
		$template->assign("permission_approve", ($permission_approve)?1:0);
		$template->register_permissions(
			array('administrate','configure','post','edit','delete','manage_approval','manage_categories'),
			$loc
		);
		$template->output();
	} else {
		echo SITE_403_HTML;
	}

?>
